import request from '@/utils/request'

// 查询随身物品信息主列表
export function listBelongings(query) {
  return request({
    url: '/business/belongings/list',
    method: 'get',
    params: query
  })
}

// 查询随身物品信息主详细
export function getBelongings(fId) {
  return request({
    url: '/business/belongings/' + fId,
    method: 'get'
  })
}

// 新增随身物品信息主
export function addBelongings(data) {
  return request({
    url: '/business/belongings',
    method: 'post',
    data: data
  })
}

// 修改随身物品信息主
export function updateBelongings(data) {
  return request({
    url: '/business/belongings',
    method: 'put',
    data: data
  })
}

// 删除随身物品信息主
export function delBelongings(fId) {
  return request({
    url: '/business/belongings/' + fId,
    method: 'delete'
  })
}
